home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / laser.zip / DEMO.BAT < prev    next >
DOS Batch File  |  1988-10-08  |  7KB  |  152 lines

  1. Echo off
  2. Cls
  3. Echo :  Graphics Demonstration Program
  4. Echo :
  5. Echo :
  6. Echo :  This demonstration will provide an overview of the graphics capabilities
  7. Echo :  of the plotting software.
  8. Echo :
  9. if exist environ.par goto continue
  10. Echo :  You must Run Install before running this demonstration.
  11. Echo :  Hit any key to run INSTALL, Ctrl-Break to end the demo.
  12. Pause
  13. Install
  14. Pause
  15. Cls
  16. :Continue
  17. Echo :
  18. Echo :  The most important thing to know is that help files are included, and
  19. Echo :  may be viewed with the command PLOTHELP.  The help files will now be
  20. Echo :  shown; hit ESC to exit the help files and resume the demo, or enter
  21. Echo :  the help topic name for more information on the desired item.  Topics
  22. Echo :  OVERVIEW and COMMAND SUMMARY are recommended for beginners.  Note that
  23. Echo :  the entire help topic name does not need to be entered; just enough
  24. Echo :  to distinguish the desired topic.
  25. Echo :
  26. Pause
  27. PlotHelp
  28. Cls
  29. Echo :  The first demostration will display a simple line plot to the screen.
  30. Echo :  The data file format is described in PLOTHELP.  In the simplest case,
  31. Echo :  the data file contains the following information:
  32. Echo :
  33. Echo :     The number of 'lines' of data in the file
  34. Echo :     The number of points in each line
  35. Echo :     The data for the first line
  36. Echo :     The data for the second line
  37. Echo :     ... the data for the last line
  38. Echo :
  39. Echo :  For example, the plot about to be generated uses the data file TEST.DAT.
  40. Echo :  This file contains the following data:
  41. Echo :
  42. Pause
  43. Cls
  44. Type Test.dat
  45. Echo :
  46. Pause
  47. Cls
  48. Echo :  Two commands will be used to generate the plot.  The first is TWO_D.
  49. Echo :  This command will set up the plot program to generate a two-dimensional
  50. Echo :  plot.  The second command is PLOT TEST, which will plot the data file
  51. Echo :  TEST.DAT.
  52. Echo :
  53. Echo :  When the plot is displayed on the screen, hit any key to get a menu
  54. Echo :  of options.  Hit S to save the plot to a disk file, then Q to quit
  55. Echo :  the plot program.  Before quitting, you may try hitting L to produce
  56. Echo :  a low-resolution plot, or H to produce a high-resolution plot.
  57. Echo :
  58. Pause
  59. command /c two_d
  60. command /c plot test
  61. Cls
  62. Echo :  The next example illustrates the use of a three-dimensional surface
  63. Echo :  plot.  This example may take several minutes depending on the speed
  64. Echo :  of your computer.  For this plot, a header file is used to specify
  65. Echo :  various plot parameters.  The HEADER command provides an easy method
  66. Echo :  of creating a header file, and HEDIT provides an easy means of editing
  67. Echo :  a header file.  The HEDIT program will now be invoked using the
  68. Echo :  command HEDIT SINC.HDR.  Use the cursor keys to move through the header
  69. Echo :  file; hit function key 2 to see a description of the parameter under
  70. Echo :  the cursor, and use Ctrl-Q to exit HEDIT without saving any changes
  71. Echo :  you may have made.
  72. Echo :
  73. Pause
  74. Hedit Sinc
  75. Cls
  76. Echo :  If the number of parameters is intimidating, bear in mind that default
  77. Echo :  values are provided for each parameter so that a full understanding of
  78. Echo :  the contents of the header files is not required.
  79. Echo :
  80. Echo :  A plot will now be generated using the header file Sinc.hdr and Sinc.dat.
  81. Echo :  The command to generate the plot is PLOT /ZI 15 20 1 41 SINC.HDR SINC.DAT.
  82. Echo :  Remember to hit S to save the plot to a disk file before hitting Q to return
  83. Echo :  to the demo.
  84. Echo :
  85. Echo :  This plot may take several minutes to complete.  It will run significantly
  86. Echo :  faster on systems using a math coprocessor and running the plot version
  87. Echo :  which uses the coprocessor.
  88. Echo :
  89. Pause
  90. If Exist Sinc.dat goto Sinc
  91. Echo :  The file Sinc.dat must first be created.  Please be patient; this is
  92. Echo :  computationally intesive and may take a while...
  93. Sinc
  94. :Sinc
  95. Command /c Plot /zi 15 20 1 41 Sinc Sinc
  96. Cls
  97. Echo :  The next example illustrates the capability of the program to number
  98. Echo :  an axis using a log scale.  The command is:
  99. Echo :
  100. Echo :     PLOT /LOGZ -5 /ASF LOGXYZ.ASF LOG.HDR LOG.DAT
  101. Echo :
  102. Echo :  This may appear cryptic.  The /LOGZ -5 specifier instructs the program
  103. Echo :  to convert the data in the data file to log values using a minimum value
  104. Echo :  of -5 (since the log of zero is negative infinity, a lower limit must
  105. Echo :  be specified.) The /ASF LOGXYZ.ASF specifier indicates that the program
  106. Echo :  should use the axis specification file LOGXYZ.ASF to define the axis
  107. Echo :  scale.  Several example *.ASF files are included on the program disk.
  108. Echo :  The LOG.HDR and LOG.DAT specifiers indicate that the file LOG.HDR should
  109. Echo :  be used as the header file, and LOG.DAT should be used as the data file.
  110. Echo :  (The .DAT and .HDR filename extensions are used by default and may be
  111. Echo :  omitted.)  Finally, note that this plot may not look very good on a low
  112. Echo :  resolution monitor such as CGA.  The log capability may still by useful
  113. Echo :  on CGA systems since a high-resolution plot may be generated independent
  114. Echo :  of screen resolution.
  115. Echo :
  116. Echo :  (Remember to hit S to save the plot to a disk file before returning to
  117. Echo :  the demo.)
  118. Echo :
  119. Pause
  120. Command /c Plot /logz -5 /asf logxyz.asf log log
  121. Cls
  122. Echo :  The final example illustrates split screen capability.  For split screens,
  123. Echo :  a split screen specification file must be used.  Command SEDIT allows for
  124. Echo :  the creation or editing of such a specification file.  This example makes
  125. Echo :  use of the included file SPLIT.SPL.  SEDIT will now be invoked to display
  126. Echo :  the contents of SEDIT.SPL.  Use Ctrl-Q to exit SEDIT.
  127. Echo :
  128. Pause
  129. Command /c Sedit split
  130. Cls
  131. Echo :  The plot will now be generated.  Note that this example generates four
  132. Echo :  plots on one screen, and will look bad on most monitors.  The split file
  133. Echo :  capability is intended for use in generating high-resolution plots
  134. Echo :  (particularly on a laser printer or a 24 pin dot-matrix printer).  Two
  135. Echo :  plots may be generated on one screen with good results.
  136. Echo :
  137. Echo :  (Remember to hit S to save the plot to a disk file before returning to
  138. Echo :  the demo.)
  139. Echo :
  140. Pause
  141. Command /c Plot /Split Split
  142. Cls
  143. Echo :  All the plots saved to a disk file using this software may be recalled using
  144. Echo :  the GALLERY command.
  145. Echo :
  146. Pause
  147. Command /c Gallery *
  148. Cls
  149. Echo :  This concludes the demonstration program.  To learn more about using the
  150. Echo :  software, read through the help files, and experiment with the examples
  151. Echo :  explained therein.
  152.